//
//  BaseNavigationController.m
//  MyMovie
//
//  Created by Weiwei on 16/2/24.
//  Copyright © 2016年 bever贝沃汇力 weiwei. All rights reserved.
//

#import "BaseNavigationController.h"

@implementation BaseNavigationController


-(void)viewDidLoad{
    //保留父类方法
    [super viewDidLoad];
    
    //设置导航栏
    //获得一个单利对象
    [[UINavigationBar appearance]setBackgroundImage:[UIImage imageNamed:@"pic_title_bg.9"] forBarMetrics:UIBarMetricsDefault];
//    UIBarMetricsDefault,竖屏
//    UIBarMetricsCompact,横屏
    
    [[UINavigationBar appearance]setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont systemFontOfSize:20]}];
    
    
}

//修改当前控制器对应的状态栏的样式
-(UIStatusBarStyle)preferredStatusBarStyle{
    
    return UIStatusBarStyleLightContent;
}

@end
